<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.shengruan.org/tags" prefix ="f"%> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery.js'/>"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
$(document).ready(function() {
<c:if test="${not empty requestScope.message}">
$("#infoSpan").html("<img src='<c:url value='/admin/assets/images/flag.gif'/>'><font color='#C00000'><c:out value='${requestScope.message}' escapeXml='false'/></font>");
</c:if>

});
// ]]>
</script>
</head>
<body class="main">
<table class="container" cellpadding="0" cellspacing="0">

<tr class="dark" valign="middle">
<td><table width="100%" border="0">
  <tr>
    <td>
    <input class="button" type="button" value="新增" onClick="document.location='shipping-edit.jsp'">
    </td>
    <td></td>
  </tr>
</table>
</td>
</tr>
<c:if test="${not empty requestScope.message}">
<tr class="dark" valign="middle">
<td align="center"><span id="infoSpan" class="infoSpan">&nbsp;</span></td>
</tr>
</c:if>

<tr>
<td colspan="2"><table class="list" align="center" cellspacing="1" cellpadding="0">
<tr class="heading">
<td width=7%>序号</td>
<td width=17%>名称</td>
<td width=17%>金额</td>
<td width=18%>创建时间</td>
<td width=6%>&nbsp;</td>
</tr>
 <c:set var="sort" value="0"/>
<c:forEach var="shipping" items="${requestScope.shippingList}" varStatus="loop">
<tr <c:if test="${loop.count%2==0}">class="odd"</c:if>>
  <td height="25">${loop.count}</td>
  <td height="25" style="text-align:left">${shipping.name}</td>
  <td>${shipping.amount}</td>
  <td>${f:format(shipping.creationTime)}</td>
  <td height="25" class="action">
    &nbsp;<a href="<c:url value='/admin/system/shipping-delete.ac?id=${shipping.id}'/>" onClick="return confirm('确认删除吗？')"><img src="../images/delete.gif" alt="删除" title="删除"></a>
    &nbsp;<a href="<c:url value='/admin/system/shipping-getById.ac?id=${shipping.id}'/>"><img src="../images/edit.gif" alt="编辑" title="编辑"></a>
    &nbsp;</td>
</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
</body>
</html>

